/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.imyours.model.group;

import java.util.Date;
import java.util.Set;

import com.imyours.model.user.UserEntity;

/**
 *羄1�7
 * @author Slevenc
 */
public class GroupEntity {
    //主键
    private long id;
    //群名称
    private String name;
    //群拥有者
    private UserEntity owner;
    //群创建时间
    private Date createDate;
    //群描述
    private String desc;
    //群成员
    private Set<UserEntity> users;

    /**
     * @return the id
     */
    public long getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(long id) {
        this.id = id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the owner
     */
    public UserEntity getOwner() {
        return owner;
    }

    /**
     * @param owner the owner to set
     */
    public void setOwner(UserEntity owner) {
        this.owner = owner;
    }

    /**
     * @return the createDate
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * @param createDate the createDate to set
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * @return the desc
     */
    public String getDesc() {
        return desc;
    }

    /**
     * @param desc the desc to set
     */
    public void setDesc(String desc) {
        this.desc = desc;
    }

    /**
     * @return the users
     */
    public Set<UserEntity> getUsers() {
        return users;
    }

    /**
     * @param users the users to set
     */
    public void setUsers(Set<UserEntity> users) {
        this.users = users;
    }
    
    

    
}
